﻿using System;
using SocialKit.LightRest.OAuth;

namespace LightRestDemoSite
{
    public class Global : System.Web.HttpApplication
    {

        protected void Application_Start(object sender, EventArgs e)
        {
            var consumer = new Consumer
            {
                Key = "1867993588",
                Secret = "8f0fda999713d96492d67524ada82e5a",
                RequestTokenUri = "http://api.t.sina.com.cn/oauth/request_token",
                AuthorizeUri = "http://api.t.sina.com.cn/oauth/authorize",
                AccessTokenUri = "http://api.t.sina.com.cn/oauth/access_token",
                Callback = "http://localhost:2735/sinaoauthcallback.aspx"
            };

            Application["sina_consumer"] = consumer;
        }

        protected void Session_Start(object sender, EventArgs e)
        {

        }

        protected void Application_BeginRequest(object sender, EventArgs e)
        {

        }

        protected void Application_AuthenticateRequest(object sender, EventArgs e)
        {

        }

        protected void Application_Error(object sender, EventArgs e)
        {

        }

        protected void Session_End(object sender, EventArgs e)
        {

        }

        protected void Application_End(object sender, EventArgs e)
        {

        }
    }
}